package cn.edu.xaut.mybatisers.mall.Controller;

import cn.edu.xaut.mybatisers.mall.ServiceImp.VerificationCodeServiceImp;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/verify")
public class VerificationCodeController {

    @Autowired
    VerificationCodeServiceImp verificationCodeServiceImp;

    @ApiOperation("生成验证码")
    @RequestMapping("/getCodePicture")
    public void getCodePicture(HttpServletRequest request, HttpServletResponse response){
        verificationCodeServiceImp.getVerificationCodeImg(request, response);
    }
}
